package io;

import java.io.Serializable;

/*

 */
public class UserInfo implements Serializable {
   @InputUtil.InputField(title = "用户名",notNull = true)
    private  String username;
    @InputUtil.InputField(title = "密码",notNull = true)
    private  String password;
    @InputUtil.InputField(title = "昵称",notNull = true)
    private  String nickname;
    @InputUtil.InputField(title = "姓别",notNull = true)
    private  char gender;
    @InputUtil.InputField(title = "年龄",notNull = true,regex = "[1-9]{1,2}")
    private  int age;
    public  UserInfo(){}


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public UserInfo(String username, String password, String nickname, char gender, int age) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.gender = gender;
        this.age = age;
    }
    @Override
    public String toString() {
        return "UserInfo{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", gender=" + gender +
                ", age=" + age +
                '}';
    }
}
